<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>添加车辆技术概况及参数</title>
    <link rel="stylesheet" href="<%=basePath%>ext3.4/resources/css/ext-all.css" type="text/css"></link>
<script type="text/javascript" src="<%=basePath%>ext3.4/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/src/locale/ext-lang-zh_CN.js"></script>
<style type="text/css">
	h4{ background:#00afb9; color:#fff; padding-left:15px; line-height:30px; width:490px;}
   	.d_t td{font-size:14px; text-align:left; color:#555; padding-bottom:8px;}
   	.d_t th{font-size:14px; text-align:right; color:#555; padding-bottom:8px;}
	.d_t input{ height:26px;}
	.t_r{padding-left:15px;}
	.btn_1{ width:112px; height:32px; background:url(btn_1.gif) no-repeat 0 0; border:none; font-weight:bold; color:#fff; font-size:14px; margin-top:15px;}
	.btn_1:hover{ background:url(btn_1.gif) no-repeat 0 -33px;}	
	p{text-align:center;}
</style>
<script type="text/javascript">
Ext.onReady(function(){
//车辆类别
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboVehicleCategoryList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'vehicleCategory',
	renderTo:'vehicleCategory'
});
//驱动形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboDriveFormList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'driveForm',
	renderTo:'driveForm'
});
//发动机位置
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboEnginePositionList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'enginePosition',
	renderTo:'enginePosition'
});
//驾驶室车型
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboCabCarList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'cabCar',
	renderTo:'cabCar'
});

})
</script>
  </head>
  <body>
  <h4>添加车辆技术概况及参数</h4>
   <form action="<%=basePath%>carInfo/addVehicleInfo.action" method="post">
   <input type="hidden" name="uid" value="<%=request.getAttribute("uid") %>"/>
	<table class="d_t">
   	<tr> <th>厂牌型号:</th><td><input type="text" name="labelType"/></td> <th class="t_r">车辆类别:</th><td><div id="vehicleCategory"></div></td> </tr>
   	<tr> <th>制造厂家:</th><td><input type="text" name="manufacturer"/></td> <th class="t_r">驱动形式:</th><td><div id="driveForm"></div></td> </tr>
   	<tr> <th>发动机位置:</th><td><div id="enginePosition"></div></td> <th class="t_r">驾驶室车型:</th><td><div id="cabCar"></div></td> </tr>
   	<tr> <th>驾驶室座位数:</th><td><input type="text" name="cockpitSeats"/></td> <th class="t_r">载重量:</th><td><input type="text" name="deadWeight"/></td> </tr>
   	<tr> <th>车辆自重:</th><td><input type="text" name="lightWeight"/></td> <th class="t_r">最高车速:</th><td><input type="text" name="topSpeed"/></td> </tr>
   	<tr> <th>前后轴距:</th><td><input type="text" name="wheelbase"/></td> <th class="t_r">前轮距:</th><td><input type="text" name="wheelTrack"/></td> </tr>
   	<tr> <th>后轮距:</th><td><input type="text" name="wheelTrack02"/></td> <th class="t_r">外形尺寸:</th><td><input type="text" name="overallDimensions"/></td> </tr>
   	<tr> <th>最小转弯直径:</th><td><input type="text" name="minTurningDiameter"/></td> <th class="t_r">制动距离:</th><td><input type="text" name="brakingDistance"/></td> </tr>
   	<tr> <th>燃油消耗量:</th><td><input type="text" name="fuelConsumption"/></td> <th class="t_r">最小离地间距:</th><td><input type="text" name="minDistanceFromEarth"/></td> </tr>
   	<tr> <th>最大爬坡度:</th><td><input type="text" name="maximumGradability"/></td> <th class="t_r">油箱容量:</th><td><input type="text" name="fuelTankCapacity"/></td> </tr>
   	<tr> <th>备注:</th><td colspan="3"><textarea  name="remark" style=" width:430px;resize: none;"></textarea></td> </tr>
   	<tr><td colspan="4" style=" text-align:center"><input type="submit" value="提交" class="btn_1"/></td></tr>
   </table>
   </form>
  </body>
</html>
